package adfc2.reactions;

import adfc2.core.Item;
import adfc2.core.Reaction;
import adfc2.entities.MasonWorkshop;
import adfc2.items.Block;
import adfc2.items.Stone;

/**
 * Камень --> каменные блоки
 */
public class MakeStoneBlocks extends Reaction {


    public MakeStoneBlocks(MasonWorkshop workshop, Stone input) {
        super(workshop, input);
    }

    @Override
    public Item[] output() {
        return new Item[]{new Block(input[0].material())};
    }

    @Override
    public boolean valid() {
        return true;//input.length == 1 && input[0].type() == Item.Type.STONE && workshop != null && workshop instanceof MasonWorkshop;
    }

    @Override
    public String shortName() {
        return "make " + input[0].shortName() + " block";
    }
}
